﻿using System.ComponentModel.Composition;
using Cubicle.Core.Interfaces;
using Cubicle.Core.Processors;

namespace Cubicle.Excel.Processors
{
    [Export("Cubicle.Excel.Processors.ConditionNotNull", typeof(IProcessor<object>))]
    [ExportMetadata("Name", "ConditionNotNull")]
    [ExportMetadata("Description", "Check that result is not null.")]
    public class ConditionNotNull : ConditionalQueue<object>
    {

        public override bool Condition(object request)
        {
            return request != null;
        }

    }
}